package com.zht.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum ErrorCode {
    PARAM_ERROR(400, "参数错误"),

    UNAUTHORIZED(401, "登录失效，请重新登录"),

    NOT_PERMISSION(403, "权限不足"),

    NOT_FOUND(404, "资源未找到"),

    METHOD_ERROR(405, "方法不允许"),

    SERVER_ERROR(500, "服务器异常，请稍后再试"),

    CODE_SEND_FAIL(3001, "验证码发送失败"),

    SMS_CODE_ERROR(3002,"短信验证码错误"),

    PARAMS_ERROR(3003,"参数错误"),

    PHONE_ERROR(3004,"手机号格式错误");

    private int code;

    private String msg;
}
